package com.example.vs;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Spinner;

public class Editor extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.editor);    
        
        Spinner s = (Spinner) findViewById(R.id.Spinner01);
                
        ArrayAdapter<CharSequence> spinnerAdapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item);  
        
        spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

        s.setAdapter(spinnerAdapter);
        
        spinnerAdapter.add("dummy item1");
        spinnerAdapter.add("dummy item2");


//        ArrayAdapter<String> adapter = 
//        	new ArrayAdapter<String>( 
//        	this,
//        	android.R.layout.simple_spinner_item);
//
//        	adapter.add(new MyData("key1", "value1"));
//        	adapter.add(new MyData("key2", "value2"));
//        	adapter.add(new MyData("key3", "value3"));
//    		}     
    }
}